package user

import (
	"github.com/gin-gonic/gin"
	"www.bwbdim.com/internal/handler"
)

func UsersGroup(group *gin.RouterGroup) {

	//实例化用户中心结构体
	usersHandler := handler.NewUsersHandler()

	//登录
	group.POST("/login", usersHandler.Login)
	//注册
	group.GET("/register", usersHandler.Register)
}
